@SET TEMPLATEDIR="%CommonProgramFiles%\Microsoft Shared\web server extensions\12\TEMPLATE"
@SET FEATUREDIR="%CommonProgramFiles%\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\ExternalCollaboration"
@SET STSADM="%CommonProgramFiles%\Microsoft Shared\web server extensions\12\bin\stsadm.exe"
@SET GACUTIL="%ProgramFiles%\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe"

Echo Installing AddExternalUser in GAC
%GACUTIL% -u EAT.ExternalCollaboration
%GACUTIL% /i bin\debug\EAT.ExternalCollaboration.dll /f

Echo Copying source files to WSS \TEMPLATE directory
xcopy /e /y 12\TEMPLATE\* %TEMPLATEDIR%
xcopy /e /y 12\RESOURCES\* %FEATUREDIR%

Echo Installing feature with WSS
%STSADM% -o installfeature -filename ExternalCollaboration\feature.xml -force

Echo Restarting IIS worker process
IISRESET

